//UseStringBuilder.java
package com.xyc.ch6;
public class UseStringBuilder
{

	public static void main(String[] args)
	{
		StringBuilder s=new StringBuilder("This is a string");
		System.out.println("s="+s);
		System.out.println("s.length()="+s.length());
		System.out.println("s.capacity()="+s.capacity());
		s.append("!");
		s.insert(10,"character ");
		System.out.println("s="+s);
		s.reverse();
		System.out.println("s="+s);
   }
}


